# ------------------Macro-Defs---------------------
#G95 settings
#
#FC=g95
#FFLAGS=-Wextra
#
#gfortran settings
#
#FC=gfortran
FC=gfortran
FFLAGS= -O2 -Wall -ffast-math
# -------------------End-macro-Defs---------------------------

# Here is the link step 
coaxial:select_precision.o constants.o mymodule.o dispmodule.o coaxial.f95 
	 $(FC) $(FFLAGS) -o coaxial.bin select_precision.o constants.o mymodule.o dispmodule.o coaxial.f95 -llapack 

# Here are the compile steps
 
select_precision.o:./select_precision.f95  
	 $(FC) $(FFLAGS) -c ./select_precision.f95 

constants.o:./constants.f95 select_precision.o 
	 $(FC) $(FFLAGS) -c ./constants.f95 
	 
mymodule.o:./mymodule.f95 select_precision.o constants.o
	 $(FC) $(FFLAGS) -c ./mymodule.f95	 
     
dispmodule.o:./dispmodule.f95
	 $(FC) $(FFLAGS) -c ./dispmodule.f95 	      

# This entry allows you to type " make clean " to get rid of
# all object and module files 
clean:
	rm -f -r f_{files,modd}* *.o *.mod *.M *.d V*.inc *.vo \
	V*.f *.dbg album F.err
  
